//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_after_recycleList.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Voucher_sub: '',
			Client_name: '',
			Goods_sub: '',
			Goods_name: '',
			Goods_size: '',
			AvailableQuantity: '',
			After_delivery_date: '',
			After_deliveryList: '',
			Goods_num: '',
			Remark: ''
		},
		editFormOptions: [
			{ title: '回收数量', required: true, field: 'Goods_num', type: 'number' },
			{ title: '售后发货单编码', field: 'Voucher_sub' },
			{ key: '无条件客户', data: [], title: '客户名称', field: 'Client_name', type: 'select' },
			{ title: '商品编码', field: 'Goods_sub' },
			{ title: '商品名称', field: 'Goods_name' },
			{ title: '规格型号', field: 'Goods_size' },
			{ title: '可用数量', field: 'AvailableQuantity', type: 'decimal' },
			{ title: '售后发货时间', field: 'After_delivery_date' },
			{ title: '售后发货单明细ID', required: true, field: 'After_deliveryList' },
			{ title: '备注', field: 'Remark', type: 'textarea' }
		],
		searchFormFields: {},
		searchFormOptions: [],
		columns: [
			{ field: 'Voucher_sub', title: '售后发货单编码', type: 'string' },
			{ field: 'Client_name', title: '客户名称', type: 'string', bind: { key: '无条件客户', data: [] } },
			{ field: 'Goods_sub', title: '商品编码', type: 'string' },
			{ field: 'Goods_name', title: '商品名称', type: 'string' },
			{ field: 'Goods_size', title: '规格型号', type: 'string' },
			{ field: 'AvailableQuantity', title: '可用数量', type: 'float' },
			{ field: 'Goods_num', title: '回收数量', type: 'float', edit: true },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'After_recycleList',
			footer: 'Foots',
			cnName: '售后回收明细',
			name: 'q_after_recycleList',
			url: '/q_after_recycleList/',
			sortName: 'Voucher_sub'
		}
	};
}
